import { api, dataHandler } from 'utils/http';
// import 'mock/DetectionStartMock';
// import 'mock/DetectionEndMock';
// import 'mock/DetectionTasksMock';
// import 'mock/HumanEcnMock';

// 启动任务
const startTask = (data) => api.put('/api/ecn/start', data).then(dataHandler);
// 结束任务
const endTask = (data) => api.put('api/ecn/end', data).then(dataHandler);
// 任务队列
const taskList = (data) => api.get('api/operator/tasks', data).then(dataHandler);
const ecnList = (data) => api.get('/api/operator/ECNs', data).then(dataHandler);


export {
  startTask,
  endTask,
  taskList,
  ecnList,
};
